/**
 *
 * History:
 */
package com.powersi.biz.util.report.xls;
/**
 * 报表公用类
 */
public class XlsFmt {
	//报表数据类型常量
	public static final String INTEGER = "%,d";
	public static final String STRING = "%1$s";
	public static final String AMT = "%1$,.2f";
	public static final String DATE = "%1$tY-%1$tm-%1$td";
	public static final String DATETIME = "%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS";
	
	//取得一个指定精度的Double格式类型
	public static String getDoubleFmt(int scale){
		return "%1$,."+scale+"f";
	}
}
